﻿/* 9. Write a program that prints the first 10 members of the sequence: 2, -3, 4, -5, 6, -7, ... */

using System;

public class Sequence
{
    public static void Main()
    {
        int numberOfMembers = 10;
        int currentMember = 2;
        sbyte sign = 1;

        if (numberOfMembers > 0)
        {
            for (int i = 0; i <= numberOfMembers - 2; i++)
            {
                Console.Write("{0}, ", sign * (currentMember++));
                sign = (sbyte)-sign;
            }

            Console.WriteLine(sign * (currentMember++));
        }
    }
}